﻿using DynamicProxy.Core;
using DynamicProxy.Core.AutoProxy;
using System;
using System.Collections.Generic;
using System.Text;

namespace DynamicProxy.AOP
{
    /// <summary>
    /// 后拦截器
    /// </summary>
    [AttributeUsage(AttributeTargets.Method)]
    public abstract class AOPAfterAttribute : RewriteAttribute
    {
        protected Invocation invocation;
        public virtual AOPAfterAttribute Fill(Invocation invocation)
        {
            this.invocation = invocation;
            return this;
        }
        public abstract bool AfterExecute(bool ifexecute, bool ifsucceed);
    }
}
